package com.bianguo.android.baidumapdemo.service;

import android.app.Activity;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.bianguo.android.baidumapdemo.utils.LocationHelper;
import com.bianguo.android.baidumapdemo.utils.MLog;

public class LocationService extends Service {

    private LocationHelper locHelper;

    public LocationService() {
        locHelper = LocationHelper.getInstance(this);
    }

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        return super.onStartCommand(intent, flags, startId);
    }

    public static void startLocService(Activity mContext) {
        mContext.startService(new Intent(mContext, LocationService.class));
    }

    public static void stopLocService(Activity mContext) {
        mContext.stopService(new Intent(mContext, LocationService.class));
    }
}
